#include "prime.h"
#include <process.h>
#include <iostream>
#include "myhash.h"
using namespace std;

void printInstruction()
{
	cout << "999 -> printall" << endl;
	cout << "44-> quit" << endl;
}


int main()
{
	printInstruction();

	SepHash myhash;

	

	int ivalue = 0;
	while (cin >> ivalue)
	{
		if (ivalue == 44)
			break;
		if (ivalue == 999)
			myhash.desc();
		myhash.insert(ivalue);
	}


	system("pause");

	return 0;


}